#!/bin/bash
#==============================================================================
# Copyright 2015 zod.yslin
# Author: zod.yslin
# Email:
# File Name: gperf.sh
# Description:
#   generate a perfect hash function from a key set
# Edit History:
#   2015-01-10    File created.
#==============================================================================
cd gperf; m4 c-parse.gperf | grep -v '^$' | \
    gperf -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,$ > c-gperf.h
